package com.infnoon.parking.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.infnoon.parking.model.dto.vehicles.RecordsQueryRequest;
import com.infnoon.parking.model.entity.Parkingrecords;
import com.baomidou.mybatisplus.extension.service.IService;


/**
* @author 31124
* @description 针对表【parkingrecords】的数据库操作Service
* @createDate 2024-12-16 14:54:54
*/
public interface ParkingrecordsService extends IService<Parkingrecords> {
    /**
     * 停车 刚进来的时候 的 records
     * @param parkingRecordID 账单id
     * @param carnumber 车牌号
     * @return 一个值表示ok
     */
    long carRegister(Integer parkingRecordID, String carnumber);

    /**
     * 停车 出去
     * @param parkingRecordID 账单id
     * @param carnumber 车牌号
     * @return 车费钱
     */
    Float carOut(Integer parkingRecordID, String carnumber);

    /**
     * 获取查询条件
     *
     * @param recordsQueryRequest
     */
    QueryWrapper<Parkingrecords> getQueryWrapper(RecordsQueryRequest recordsQueryRequest);
}
